# 作者：要努力，努力，再努力
# 开发时间：2022/4/29 15:19

import datetime


def inputdate():
    nowday = input('请输入开始日期：（20220428）')
    nowday.strip()
    datestr = nowday[0:4] + '-' + nowday[4:6] + '-' + nowday[6:8]
    return datetime.datetime.strptime(datestr, '%Y-%m-%d')


if __name__ == '__main__':
    print('----------------------------推算几天后的日期------------------------')
    nowdate = inputdate()
    delaynum = int(input('推算几天后：'))
    fdate = nowdate + datetime.timedelta(delaynum)
    print(fdate)
